import axios from 'axios'

const baseURL = 'http://localhost:3000'
const instance = axios.create({
  baseURL,
  timeout: 5000
})

instance.interceptors.request.use(config => {
  return config
})

instance.interceptors.response.use(response => {
  return response.data
})

export default instance